import { get, post, del } from "../plugins/request";

//科室管理
export const ApiDepartment = (parmas) => get("/api/admin/department/getDepartmentList", parmas);
//添加科室
export const ApiDepartmentAdd = (parmas) => post("/api/admin/department/insertDepartment", parmas);
//修改科室
export const ApiDepartmentEdit = (id, parmas) => post("/api/admin/department/updateDepartment/" + id, parmas);
//删除科室
export const ApiDepartmentDel = (id) => del("/api/admin/department/deleteDepartment/" + id);

//学科列表
export const ApiSubDepartment = (parmas) => get("/api/admin/department/getSubDepartmentList", parmas);
//添加科室
export const ApiSubDepartmentAdd = (parmas) => post("/api/admin/department/insertSubDepartment", parmas);
//修改科室
export const ApiSubDepartmentEdit = (id, parmas) => post("/api/admin/department/updateSubDepartment/" + id, parmas);
//删除科室
export const ApiSubDepartmentDel = (id) => del("/api/admin/department/deleteSubDepartment/" + id);
//人员管理


//获取护理人员列表
export const ApigetDoctorList = (parmas) =>
  get("api/admin/doctor/doctorList", parmas);
//编辑护理人员
export const ApiDoctorEdit = (data, id) => post("api/admin/doctor/" + id, data);
//添加护理人员
export const ApiDoctorAdd = (data) => post("api/admin/doctor", data);
//删除护理人员
export const ApiDoctorDel = (id) => del("api/admin/doctor/" + id);
//重置密码
export const ApiResetPassword = (id) =>
  post("api/admin/doctor/resetPassword/" + id);

//排班列表
export const ApiDoctorScheduleList = (parmas) => get("/api/admin/doctor/doctorScheduleList", parmas);

//添加排版
export const ApiDoctorScheduleCreate = (parmas) => post("/api/admin/doctor/schedule/create", parmas);

//排班详情
export const ApiDoctorScheduleDetail = (parmas) => get("/api/admin/doctor/schedule/detail", parmas);

//订单列表
export const ApiGetOrderList = (parmas, par) =>
  get("api/admin/order/orderList", parmas, par || {});


export const ApimessageRecord = (parmas) =>
  get("api/admin/order/messageList", parmas);




//药品列表
export const ApigetMedicine = (parmas) =>
  get("api/admin/medicine", parmas);
//编辑护理人员
export const ApiMedicineEdit = (data, id) => post("api/admin/medicine/" + id, data);
//添加护理人员
export const ApiMedicineAdd = (data) => post("api/admin/medicine", data);
//删除护理人员
export const ApiMedicineDel = (id) => del("api/admin/medicine/" + id);



//药品订单列表

export const ApiGetDrugOrderList = (parmas, par) =>
  get("api/admin/order/medicineOrderList", parmas, par || {});


export const ApiGetExpressInfo = (id) =>
  get("api/admin/order/expressInfo/" + id);









export const ApigetArticle = (data) => get("api/admin/article", data);

export const ApiAddArticle = (data) => post("api/admin/article", data);

export const ApiEditArticle = (data, id) => post("api/admin/article/" + id, data);

export const ApiDelArticle = (id) => del("api/admin/article/" + id);

//置顶
export const ApiarticleTop = (data, id) => post("api/admin/article/top/" + id, data);

//下架

export const ApiarticleDown = (data, id) => post("api/admin/article/down/" + id, data);




//获取医院信息


export const ApigetHospitalInfo = () => get("api/admin/system/getHospitalInfo");

//设置医院信息
export const ApisetHospitalInfo = (data) => post("api/admin/system/setHospitalInfo", data);





//投诉和建议
export const ApiGetComplaint = () =>
  get("api/admin/complaint");




//医生登录
export const ApiLoginDoctor = (params) => post("/api/doctor/login", params)

//医生订单列表
export const ApiAdminOrderList = (params) => get("/api/doctor/order/adminOrderList", params)


//获取医生消息列表
export const ApiGetOrderMessageRecord = (params) => get("/api/doctor/order/messageRecord", params)



export const APiuploadImg = (parmas, config) =>
  post("/api/doctor/upload", parmas, config);


//退款
export const ApiRefund = (data) => post("/api/doctor/order/cancelOrder", data)


//导入患者描述信息
export const ApiGetOrderInfo = (id) => get("/api/doctor/order/orderInfo/" + id)


//是否确认开处方
export const ApisubmitDoctorAdvice = (data) => post("/api/doctor/order/doctorAdvice", data)

//添加病历
export const ApiCaseHistoryAdd = (data) => post("/api/doctor/caseHistory/add", data)

//医生列表
export const ApiGetDepartmentDoctorList = (data) => get("/api/doctor/departmentDoctorList", data)


export const ApiPostOrderChangeDoctor = (data) => post("/api/doctor/order/orderChangeDoctor", data)



export const ApiCaseHistorySearch = (data) => get("/api/doctor/caseHistory/list", data)



//获取团队医生列表
export const ApiGetDoctorTeamList = (data) => get("/api/admin/doctorTeam", data)

//添加团队
export const ApiAddDoctorTeam = (data) => post("/api/admin/doctorTeam", data)

//删除团队
export const ApiDelDoctorTeam = (id) => del("/api/admin/doctorTeam/" + id)

//修改团队
export const ApiUpdateDoctorTeam = (id, data) => post("/api/admin/doctorTeam/" + id, data)



//获取团队医生
export const ApigetTeamMember = (id) => get("/api/admin/doctorTeam/getTeamMember/" + id)


export const ApiUpdateTeamMember = (id, data) => post("/api/admin/doctorTeam/updateTeamMember/" + id, data)


export const ApiUpdateTeamStatus = (id, data) => post("/api/admin/doctorTeam/updateTeamStatus/" + id, data)


//撤回处方
export const ApiAdviceRollback = (id, data) => post("/api/doctor/order/adviceRollback/" + id, data)

//诊疗记录
export const ApiGetDocOrderList = (data) => get("/api/doctor/orderList", data)


//处方列表
export const ApiAdminAdviceList = (data) => get("/api/doctor/order/adminAdviceList", data)




//处方模板
export const ApiGetAdviceTemplate = (data) => get("/api/doctor/adviceTemplate/list", data)

//添加处方模板
export const ApiAddAdviceTemplate = (data) => post("/api/doctor/adviceTemplate/create", data)

//修改处方模板
export const ApiUpdateAdviceTemplate = (id, data) => post("/api/doctor/adviceTemplate/update/" + id, data)


//删除处方模板
export const ApidelAdviceTemplate = (id) => del("/api/doctor/adviceTemplate/delete/" + id)

//科室数据统计
export const ApidataStatisticsDepartment = (data) => get("/api/admin/dataStatistics/department", data)
//医生数据统计
export const ApidataStatisticsDoctor = (data) => get("/api/admin/dataStatistics/doctor", data)
//用户数据统计
export const ApidataStatisticsPatient = (data) => get("/api/admin/dataStatistics/patient", data)

//患者黑名单列表
export const ApidataStatisticsBlackList = (data) => get("/api/admin/dataStatistics/blackList", data)


//药品发货
export const ApiPostbulkShipment = (data) => post("/api/admin/order/medicineOrder/send", data)






export const ApibackupSetting = (params, config) => post('/api/admin/backup/setting', params, config)  //设置
export const ApigetSetting = (params, config) => get('/api/admin/backup/get/setting', params, config)  //列表
export const Apibackup = (params, config) => get('/api/admin/backup', params, config)  //列表
export const ApibackupRestore = (id, config) => get('/api/admin/backup/restore/' + id, {}, config)  //恢复
export const ApibackupRestoreDel = (id, config) => del('/api/admin/backup/' + id, {}, config)  //删除
export const ApibackupNow = (config) => get('/api/admin/backup/now', {}, config)  //立即备份




//交易额统计
export const ApigetMoneyStatistics = (data) => get('/api/admin/home/getMoneyStatistics', data)  //立即备份
//接诊量统计
export const ApigetOrderCountStatistics = (data) => get('/api/admin/home/orderCountStatistics', data)  //立即备份
//开单量统计
export const ApigetAdviceCountStatistics = (data) => get('/api/admin/home/adviceCountStatistics', data)



//快捷用语
export const ApigetReplyTemplate = (data) => get('/api/doctor/replyTemplate/list', data)  //立即备份
//添加
export const ApigetReplyTemplateCreate = (data) => post('/api/doctor/replyTemplate/create', data)
//修改
export const ApigetReplyTemplateUpdate = (id, data) => post('/api/doctor/replyTemplate/update/' + id, data)
//删除
export const ApigetReplyTemplateDelete = (id) => del('/api/doctor/replyTemplate/delete/' + id)




//科室管理
export const ApiDiseaseList = (parmas) => get("/api/admin/MDT/diseaseList", parmas);
//添加科室
export const ApiDiseaseListAdd = (parmas) => post("/api/admin/MDT/diseaseInsert", parmas);
//修改科室
export const ApiDiseaseListEdit = (id, parmas) => post("/api/admin/MDT/diseaseUpdate/" + id, parmas);
//删除科室
export const ApiDiseaseListDel = (id) => del("/api/admin/MDT/diseaseDelete/" + id);















































export const APiupload = (parmas, config) =>
  post("/api/admin/common/upload", parmas, config);

// 登录
export const APilogin = (parmas) => post("/api/admin/auth/login", parmas);

// 菜单
export const Apimenu = (parmas) => get("/api/admin/menu", parmas);
export const ApimenuAdd = (parmas) => post("/api/admin/menu", parmas);
export const ApimenuEdit = (parmas, id) =>
  post("/api/admin/menu/" + id, parmas);
export const ApimenuDel = (id) => del("/api/admin/menu/" + id);

// 权限
export const Apipermission = (parmas) => get("/api/admin/permission", parmas);
export const ApipermissionAdd = (parmas) =>
  post("/api/admin/permission", parmas);
export const ApipermissionEdit = (parmas, id) =>
  post("/api/admin/permission/" + id, parmas);
export const ApipermissionDel = (id) => del("/api/admin/permission/" + id);

// 角色
export const Apirole = (parmas) => get("/api/admin/role", parmas);
export const ApiroleAdd = (parmas) => post("/api/admin/role", parmas);
export const ApiroleEdit = (parmas, id) =>
  post("/api/admin/role/" + id, parmas);
export const ApiroleDel = (id) => del("/api/admin/role/" + id);
export const ApirolePermission = (parmas) =>
  get("/api/admin/role/permission/list", parmas);
export const ApirolepermissionPut = (parmas, id) =>
  post("/api/admin/role/permission/" + id, parmas);

// 患者管理
export const Apipatient = (parmas) => get("/api/admin/patient", parmas);
export const ApipatientAdd = (parmas) => post("/api/admin/patient", parmas);

//项目列表
export const Apiitem = (parmas) => get("/api/admin/item", parmas);
//分类列表
export const ApiCateList = (parmas) => get("api/admin/item/cateList", parmas);
//添加分类
export const ApiItemAdd = (parmas) => post("/api/admin/item", parmas);

//修改分类

export const ApiItemEdit = (parmas, id) =>
  post("/api/admin/item/" + id, parmas);

//删除分类
export const ApiItemDel = (id) => del("/api/admin/item/" + id);

//添加价格
export const ApiItemEditprice = (parmas, id) =>
  post("/api/admin/item/price/" + id, parmas);

//修改是否上架
export const ApiItemEditsale = (parmas, id) =>
  post("/api/admin/item/sale/" + id, parmas);

//用户管理
export const ApiUserList = (parmas) => get("api/admin/user/userList", parmas);
//修改用户
export const ApiUserEdit = (data, id) =>
  post("api/admin/user/updateUser/" + id, data);
//获取用户列表数据
export const ApigetUserOrderList = (id, parmas) =>
  get("api/admin/user/userOrderList/" + id, parmas);


//查看审核列表
export const ApiQualificationList = (parmas) =>
  get("api/admin/doctor/skillApplyList", parmas);

//审核通过

export const ApiQualificationApplyHandle = (id, parmas) =>
  post("api/admin/doctor/skillApplyHandle/" + id, parmas);

//审核详情

export const ApiskillApply = (id) => get("api/admin/doctor/skillApply/" + id);

//订单列表


export const ApiGetOrderDetail = (id) =>
  get("api/admin/order/orderDetail/" + id);

//订单审核列表
export const ApiGetOrderReviewList = (parmas) =>
  get("api/admin/order/orderReviewList", parmas);
//订单开始审核
export const ApiOrderReviewHandle = (id, parmas) =>
  post("api/admin/order/orderReviewHandle/" + id, parmas);

//订单分配列表
export const ApiGetOrderAllocationList = (parmas, par) =>
  get("api/admin/order/orderAllocationList", parmas, par || {});

//订单开始分配
export const ApiOrderAllocation = (parmas) =>
  post("api/admin/order/orderAllocation", parmas);

//订单进度
export const ApiOrderTimeLine = (id) =>
  get("api/admin/order/orderTimeLine/" + id);

//退款审核列表
export const ApiOrderRefundList = (params) =>
  get("/api/admin/order/refundList", params);
//退款审核
export const ApiOrderRefundHandle = (id, params) =>
  post("/api/admin/order/orderRefundHandle/" + id, params);

//查询分类
export const ApiCategoryList = (params) => get("/api/admin/category", params);
//添加分类
export const ApiAddCategory = (params) => post("/api/admin/category", params);

//添加分类
export const ApiEditCategory = (id, params) =>
  post("/api/admin/category/" + id, params);

//删除分类
export const ApiDelategory = (id) => del("/api/admin/category/" + id);

//获取时间列表数据
export const ApiOrderTime = () => get("/api/admin/system/getOrderTime");

//添加时间数据
export const ApiAddOrderTime = (data) =>
  post("/api/admin/system/saveOrderTime", data);

//护理人员导入
export const ApiDataImport = (data) =>
  post("/api/admin/doctor/data/import", data);

//获取客服电话
export const ApiGetCustomerPhone = () =>
  get("/api/admin/system/getCustomerPhone");

//修改客服电话
export const ApiSetCustomerPhone = (data) =>
  post("/api/admin/system/setCustomerPhone", data);

//获取管理列表
export const ApiAdminuser = (data) => get("/api/admin/adminuser", data);

//新增管理列表
export const ApiAddAdminuser = (data) => post("/api/admin/adminuser", data);

//新增管理列表
export const ApiEditAdminuser = (id, data) =>
  post("/api/admin/adminuser/" + id, data);

//新增管理列表
export const ApiDelAdminuser = (id) => del("/api/admin/adminuser/" + id);

export const APichangePassword = (parmas) =>
  post("/api/admin/auth/changePassword", parmas);

export const Apisystemlog = (parmas) => get("/api/admin/systemlog", parmas);

//配置
export const ApiSkillList = (id) => get("/api/admin/doctor/skillList/" + id);

//保存
export const ApiSkillListSave = (data) =>
  post("/api/admin/doctor/doctorSkill/save", data);

//定义用户须知
export const ApiSetConfig = (data) => post("/api/admin/system/setConfig", data);

//定义用户须知
export const ApiGetConfig = (data) => get("/api/admin/system/getConfig", data);


//订单详情
export const ApiGetOrderDetailData = (id) =>
  get("api/admin/order/orderList/" + id);


//历史评价

export const ApiGetOrderCommentList = (id) =>
  get("api/admin/order/commentList/" + id);










//获取影像报告
export const ApiAdminImageReportList = (id) => get("/api/admin/order/getImageReportList", id)


//获取化验报告
export const ApiAdminReportList = (id) => get("/api/admin/order/getReportList", id)


//获取化验报告详情
export const ApiAdminExamineReportDetail = (id) => get("/api/admin/order/getExamineReportDetail", id)

//获取用药列表
export const ApiGetMedicineList = (data) => get("/api/user/medicine/medicineList", data)



export const ApiPostTeamReport = (data) => post('/api/doctor/order/teamReport', data)

export const ApiPosthandle = (data) => post('/api/admin/complaint/handle', data)



//订单详情

export const ApiGetOrderInfoByID = (id) => get("/api/admin/order/info/" + id)

export const ApiGetDoctorOrderInfoByID = (id) => get("/api/doctor/order/orderInfo/" + id)





//审核处方
export const ApiPostadviceReview = (data) => post("/api/doctor/order/adviceReview", data)


export const ApiGetAdviceList = (params) => get("/api/doctor/order/adviceList", params)


//获取服药频次
export const getMedicineFrequencyData = (params) => get("/api/getMedicineFrequencyData", params)

//获取服药方式
export const getMedicineTakeTypeData = (params) => get("/api/getMedicineTakeTypeData", params)


export const ApigetICDData = (params) => get("/api/getICDData", params)
export const ApigetICDDataCN = (params) => get("/api/getICDDataCN", params)



//获取中药煎服字典
export const ApigetJADataCN = (params) => get("/api/getJADataCN", params)




//MDT订单管理
export const ApigetMDTOrderList= (params) => get("/api/admin/MDT/orderList", params)




//MDT订单审核
export const ApipostMDTReviewOrder= (data) => post("/api/admin/MDT/reviewOrder", data)
